package com.qf.mapper;

import com.qf.entity.UserRole;
import com.qf.entity.BackendUser;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Map;
import java.util.Set;

public interface BackendUserMapper extends Mapper<BackendUser> {

    //通过用户id查询全部角色信息
    Set<UserRole> findRolesById(@Param("id") Long id);


    //通过角色ids查询全部权限信息
    Set<String> findPermissionsByRoleIds(Map<String, Object> map);
}
